package com.xiaoshuidi.cloud.module.member.controller.admin.comment.vo;

import com.xiaoshuidi.cloud.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Schema(description = "管理后台 - 评价分页查询参数")
public class CommentPageVO extends PageParam {
    private static final long serialVersionUID = -111575337913314547L;

    @NotNull(message = "评价类型不能为空")
    @Schema(description = "评价类型1-新租,2-续租,3-退租,4-企业入住人评价,5-员工迁出评价")
    private Integer commentType;

    @Schema(description = "门店名称")
    private String apartmentName;

    @Schema(description = "租客名称")
    private String memberName;

    @Schema(description = "管家名称")
    private String steward;

    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate beginTime;

    @Schema(description = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTime;

    private LocalDateTime beginDateTime;

    private LocalDateTime endDateTime;

}
